package net.lzzy.spark;

import java.io.Serializable;

public class User implements Serializable {
    private String name;
    private char sex;
    private int older;

    public User(String name, char sex, int older) {
        this.name = name;
        this.sex = sex;
        this.older = older;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getOlder() {
        return older;
    }

    public void setOlder(int older) {
        this.older = older;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", older=" + older +
                '}';
    }
}
